package com.example.demo.pojo.param;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ParamReadResNew {

    private Converter converter;
    private Parameters parameters;
    private String device;
    private String sn;
    private String transtype;
    @Data
    static public class Converter{
        public List<Port> Port;
        public List<Socket> Socket = new ArrayList<>();
//        public Socket Socket;

    }

    @Data
    static public class Port{
        private String devMode;
        private String baudrate;
        private String databit;
        private String parity;
        private String stopbit;
        private String flowControl;
        private String dev;
    }

    @Data
    static public class Socket{
        private String serverAddr0;
        private String serverPort0;
    }

    @Data
    static public class Parameters{
        private Profile Profile;
        private Freqz Freqz;
    }

    @Data
    static public class Profile{
        private String version;
        private String stationID ;
        private String device;
        private String sn;
        private String fixedlength;
        private String Switchafc;
        private String switchscan;
        private String bandwidth;
        private String baud;
        private String LAT;
        private String LONG;
        private String ALT;
    }

    @Data
    static class Freqz{
        private String freqz0;
        private String freqz1;
        private String freqz2;
        private String freqz3;
        private String freqz4;
        private String freqz5;
        private String freqz6;
        private String freqz7;
    }

}


